<%@ page language="java" pageEncoding="UTF-8"
         contentType="text/html;charset=UTF-8" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%
    String path = request.getContextPath();
// 获得项目完全路径（假设你的项目叫MyApp，那么获得到的地址就是http://localhost:8080/MyApp/）:
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>无标题文档</title>
    <link href="<%=basePath%>jsp/backstage/css/style.css" rel="stylesheet" type="text/css"/>
    <script>
        var message = "${requestScope.message}"//接收控制器传递过来的参数
        if (message != "") {//如果传递了错误的信息过来
            alert(message);
        }
    </script>
</head>

<body>

<div class="place">
    <span>位置：</span>
    <ul class="placeul">
        <li><a href="#">首页</a></li>
        <li><a href="<%=basePath%>backstage/adminmanage/all">账户管理</a></li>
        <li><a href="#">账户添加</a></li>
    </ul>
</div>

<div class="formbody">

    <div class="formtitle"><span>基本信息</span></div>

    <form action="<%=basePath%>backstage/adminmanage/doAddAdmin" method="post">
        <ul class="forminfo">
            <li><label>账户名</label><input name="username" type="text" class="dfinput"/></li>
            <li><label>姓名</label><input name="name" type="text" class="dfinput"/></li>
            <li><label>性别</label>
                <cite>
                    <input name="sex" type="radio" value="1"/>男
                    <input name="sex" type="radio" value="2"/>女
                </cite>
            </li>
            <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="保存"/></li>
        </ul>
    </form>

</div>
</body>
</html>
